import './assets/main.scss'

import { createApp } from 'vue'
import EleMentPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'
 
import locale from 'element-plus/dist/locale/zh-cn.js'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
 
import App from './App.vue'

const app = createApp(App);
const pinia = createPinia();
const persist = createPersistedState()
pinia.use(persist);
app.use(pinia);
app.use(router);
 
app.use(EleMentPlus,{locale});
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
